<?php

class DepartmentJobsController extends Base {
  use CURD;

  public $tableName = 'department_jobs';
  protected $deleted_at = true;
  protected $isTree = false;
  protected $likeField = 'title'; 
  protected $parentKey = 'pid';
  protected $relations = [
    'department_id' => ['table'=>'departments','as'=>'department','pri'=>'id','cols'=>['id','title'],'where'=>['deleted_at'=>null],'type'=>'one'],
  ];
}
